package com.base.grammardemo;
import java.util.Scanner;

/*
 * 逻辑与运算Demo
 */
public class LogicAnd {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		System.out.println("输入5分制分数:");
		int score = scanner.nextInt();
		boolean isFiveScore = score >= 0 && score <= 5;
		System.out.println(score + "是5分制的分数:" + isFiveScore);
	}
}